package com.hisan.freeride.home.model;
import com.hisan.freeride.common.model.BaseModel;

import java.util.ArrayList;
import java.util.List;

/**
 * 创建时间 : 2017/6/5
 * 创建人：yangyingqi
 * 公司：嘉善和盛网络有限公司
 * 备注：首页行程模板
 */
public class HomeModel extends BaseModel {


    /**
     * advert : [{"id":1,"thumbnail":"http://freeride.oss-cn-qingdao.aliyuncs.com/8cd573c63144f5c4dfc82ebcb117ae8c.png","url":"http://www.baidu.com"},{"id":2,"thumbnail":"http://freeride.oss-cn-qingdao.aliyuncs.com/710d69a06e4e08370a172e1da683aa7b.jpg","url":""},{"id":3,"thumbnail":"http://freeride.oss-cn-qingdao.aliyuncs.com/8f84aba8f4f3831a0a8c29ad81ac7197.jpg","url":""}]
     * trip : [{"id":65,"driver_id":65,"departure_time":"今天 17:25","initially":"嘉兴市 · 博瑞广告","destination":"嘉兴市 · 嘉兴万达广场(广益路)","surplus":1,"tag_id":[{"name":"宠物"},{"name":"儿童"},{"name":"孕妇"},{"name":"为他人叫车"}],"people":1,"nickname":"豆师傅","avatar":"http://freeride.oss-cn-qingdao.aliyuncs.com/97656786eee0d7df7d672e424e751b3d.png","score":3.2},{"id":63,"driver_id":2,"departure_time":"今天 19:01","initially":"嘉兴市·大唐装饰","destination":"嘉兴市·x家","surplus":4,"tag_id":[{"name":"儿童"},{"name":"有大件行李"},{"name":"吸烟"}],"people":4,"nickname":"严师傅","avatar":"http://wx.qlogo.cn/mmopen/ajNVdqHZLLB2EWUwxwQloNp3N944YZ2UUlhOAz3MIhr7JksnVBNmIlYZO1I5mdge171mKULjlZo6f6ZkhIQP6g/0","score":4}]
     * news : [{"id":2,"title":"活动促销001"},{"id":5,"title":"公益活动"},{"id":8,"title":"活动促销002"}]
     * time : 2017-07-11 17:04:06
     */

    private String time;
    private List<AdvertBean> advert;
    private List<TripBean> trip;
    private List<NewsBean> news;

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public List<AdvertBean> getAdvert() {
        return advert;
    }

    public void setAdvert(List<AdvertBean> advert) {
        this.advert = advert;
    }

    public List<TripBean> getTrip() {
        return trip;
    }

    public void setTrip(List<TripBean> trip) {
        this.trip = trip;
    }

    public List<NewsBean> getNews() {
        return news;
    }

    public void setNews(List<NewsBean> news) {
        this.news = news;
    }

    public static class AdvertBean {
        /**
         * id : 1
         * thumbnail : http://freeride.oss-cn-qingdao.aliyuncs.com/8cd573c63144f5c4dfc82ebcb117ae8c.png
         * url : http://www.baidu.com
         */

        private int id;
        private String thumbnail;
        private String url;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getThumbnail() {
            return thumbnail;
        }

        public void setThumbnail(String thumbnail) {
            this.thumbnail = thumbnail;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }

    public static class TripBean {
        /**
         * id : 65
         * driver_id : 65
         * departure_time : 今天 17:25
         * initially : 嘉兴市 · 博瑞广告
         * destination : 嘉兴市 · 嘉兴万达广场(广益路)
         * surplus : 1
         * tag_id : [{"name":"宠物"},{"name":"儿童"},{"name":"孕妇"},{"name":"为他人叫车"}]
         * people : 1
         * nickname : 豆师傅
         * avatar : http://freeride.oss-cn-qingdao.aliyuncs.com/97656786eee0d7df7d672e424e751b3d.png
         * score : 3.2
         */

        private int id;
        private int driver_id;
        private String departure_time;
        private String initially;
        private String destination;
        private String way;
        private int surplus;
        private int people;
        private String nickname;
        private String avatar;

        public int getService_count() {
            return service_count;
        }

        public void setService_count(int service_count) {
            this.service_count = service_count;
        }

        private int service_count;
        private double score;
        private ArrayList<TagIdBean> tag_id;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getDriver_id() {
            return driver_id;
        }

        public void setDriver_id(int driver_id) {
            this.driver_id = driver_id;
        }

        public String getDeparture_time() {
            return departure_time;
        }

        public String getWay() {
            return way;
        }

        public void setWay(String way) {
            this.way = way;
        }
        public void setDeparture_time(String departure_time) {
            this.departure_time = departure_time;
        }

        public String getInitially() {
            return initially;
        }

        public void setInitially(String initially) {
            this.initially = initially;
        }

        public String getDestination() {
            return destination;
        }

        public void setDestination(String destination) {
            this.destination = destination;
        }

        public int getSurplus() {
            return surplus;
        }

        public void setSurplus(int surplus) {
            this.surplus = surplus;
        }

        public int getPeople() {
            return people;
        }

        public void setPeople(int people) {
            this.people = people;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public double getScore() {
            return score;
        }

        public void setScore(double score) {
            this.score = score;
        }

        public ArrayList<TagIdBean> getTag_id() {
            return tag_id;
        }

        public void setTag_id(ArrayList<TagIdBean> tag_id) {
            this.tag_id = tag_id;
        }

        public static class TagIdBean {
            /**
             * name : 宠物
             */

            private String name;

            public TagIdBean(String name) {
                this.name = name;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }
        }
    }

    public static class NewsBean {
        /**
         * id : 2
         * title : 活动促销001
         */

        private int id;
        private String title;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }
    }
}
